<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-type" content="text/html; charset=utf-8"> 
		<title>Register!</title>
		<!--<link rel="icon" href="/favicon.ico" type="image/x-icon" />-->
		<!--<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />-->
		<script type="application/javascript" src="js/verify.js"></script>
		<link rel="stylesheet" href="css/register.css" type="text/css" />
	</head>
	<body>
		<div id="wrapper">
			<div id="header"></div>
			<div id="maincontent" style="width:100%;">
				<div style="margin:200px auto; width:405px">
					<form action="reg_process.php" method="post">
						<div>
							<span class="warn" <?php if(!array_key_exists('already_reg', $_GET)) { ?> style="display: none" <?php } ?>>该学号已被注册过。</span>
						</div>
						<div>
							<label>学号</label> 
							<input id="stuno" name="stuno" type="text" value="<?php if(array_key_exists('err_stuno', $_GET)) echo $_GET['err_stuno'] ?>"/>
							<span id="warn_stuno" class="warn" <?php if(!array_key_exists('err_stuno', $_GET)) { ?>  style="display:none" <?php } ?>>学号输入有误!</span>
						</div>
						<div>
							<label>身份证号</label> 
							<input id="idno" name="idno" type="text" value="<?php if(array_key_exists('err_idno', $_GET)) echo $_GET['err_idno'] ?>"/>
							<span id="warn_idno" class="warn" <?php if(!array_key_exists('err_idno', $_GET)) { ?> style="display:none" <?php } ?>>身份证号输入有误!</span>
						</div>
						<div>
							<label>密码</label> 
							<input id="pass" name="pass" type="password" maxlength="16"/>
							<span id="warn_pass" class="warn" <?php if(!array_key_exists('err_pass', $_GET)) { ?>style="display:none" <?php } ?>>密码应不少于6位</span>
						</div>
						<div>
							<label>确认密码</label> 
							<input id="con_pass" name="con_pass" type="password" maxlength="16"/>
							<span id="warn_con_pass" class="warn" <?php if(array_key_exists('err_pass', $_GET) || !array_key_exists('err_con_pass', $_GET)) { ?>style="display:none" <?php } ?>>两次密码输入不一致</span>
						</div>
						<div>
							<label></label>
							<input id="register" type="button" value="注册"/>
							<span class="warn"></span>
						</div>
						<!--
						<div>
							<label></label>
							<input id="register" type="submit" value="注册"/>
							<span class="warn"></span>
						</div>
						-->
				</form>
			</div>
		<div id="footer"></div>
	</div>
	<script type="application/javascript" src="js/register.js"></script>
	</body>
</html>
